package com.scau.clothes.dao;

import com.scau.clothes.pojo.Order;
import com.scau.clothes.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface OrderDao {
    /**
     *
     * @param order
     * @return 返回主键值
     */
    int insertOrder(Order order);
    List<Order> getOrdersByUserId(@Param("id") int id);
    Order getOrderByOrderId(int orderId);
    User getUserByOrderId(int id);
    void updateOrder(Order order);
}
